#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void init(int arr[], int sz, int a)
{
	int i = 0;
	for (i = 0; i <= sz; i++)
		arr[i] = a;
}
void print(int arr[], int sz)
{
	int i = 0;
	for (i = 0; i <= sz; i++)
	{
		printf("%d", arr[i]);
	}printf("\n");
}
void reverse(int arr[], int sz)
{
	int left = 0;
	int right = sz - 1;
	while (right > left)
	{
		int tmp = arr[left];
		arr[left] = arr[right];
		arr[right] = tmp;
		left++;
		right--;
	}
}



int main()
{
	int arr[] = {1,2,3,4,5,6};
	int sz = sizeof(arr) / sizeof(arr[0]);
	 print(arr, sz);
    reverse(arr,sz);
	print(arr, sz);
	
	init(arr,sz,0);
	print(arr, sz);

	return 0;
}